package cn.yunhe.services.impl;

import cn.yunhe.dao.IClassDao;
import cn.yunhe.entity.Class;
import cn.yunhe.entity.Prof;
import cn.yunhe.services.IClassServices;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by 16555 on 2018/5/30.
 */
@Service
public class ClassServicesImpl implements IClassServices {
    @Resource
    private IClassDao classDao;
    /**
     * 根据专业查找班级
     * @param prof
     * @return
     */
    @Override
    public List<Class> getAllClassServices(Prof prof) {

        return classDao.getAllClass(prof);
    }
    /**
     * 获取该老师所在院系的班级列表
     * @return
     */
    @Override
    public List<Object> getListClass(int id){
        return classDao.getListClass(id);
    }
}
